package com.flyco.modules.sms.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 加价购商品
 * @Author: flyco
 * @Date: 2020-04-08
 * @Version: V1.0
 */
@Data
@TableName("sms_addbuy_benefit")
public class SmsAddbuyBenefit implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 加价购id
     */
    private Long infoId;
    /**
     * 商品id
     */
    @Excel(name = "商品id", width = 15)
    private Long productId;
    /**
     * 加价金额(废弃)
     */
    @Excel(name = "加价金额(废弃)", width = 15)
    private java.math.BigDecimal price;
    /**
     * 加价金额
     */
    @Excel(name = "加价金额", width = 15)
    private java.math.BigDecimal amount;
    /**
     * 状态：0-未启用 1-已启用
     */
    @Excel(name = "状态：0-未启用 1-已启用", width = 15)
    private Integer status;
    /**
     * 每单限量(废弃)
     */
    @Excel(name = "每单限量(废弃)", width = 15)
    private Integer perLimit;
    /**
     * 加购商品数量
     */
    @Excel(name = "加购商品数量", width = 15)
    private Integer qty;
    /**
     * 加价购库存，0：根据实际库存
     */
    @Excel(name = "加价购库存，0：根据实际库存", width = 15)
    private Integer stock;
    /**
     * 锁定库存,已卖出库存
     */
    @Excel(name = "锁定库存,已卖出库存", width = 15)
    private Integer lockStock;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    private String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    private String updateBy;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;
}
